﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CinemabookingWCFApp.BookedSeats
{
    [ServiceContract]
    public interface IBookedSeatsService
    {

        [OperationContract]
        List<BookedSeat> GetAllBookedSeats();

        [OperationContract]
        List<BookedSeat> GetBookedSeat(int BookedId);

        [OperationContract]
        List<BookedSeat> GetAllBookedSeatsOnMovieRuntime(int RuntimeId);

        [OperationContract]
        List<BookedSeat> GetAllBookedSeatsToABooking(string BookId);

        [OperationContract]
        void SaveBookedSeat(int Seat, string BookInfo, int Runtime);

        [OperationContract]
        void DeleteBookedSeat(int BookedId);

        [OperationContract]
        void UpdateBookedSeat(int BookedId, int Seat, string BookInfo, int Runtime);

        [OperationContract]
        void DeleteBookedSeatsOnPhoneNr(string BookedPhonenr);

    }
}
